package com.maimang.platform.dsp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maimang.platform.dsp.mapper.OthersMapper;
import com.maimang.platform.dsp.entity.Others;
import com.maimang.platform.dsp.service.OthersService;
import com.maimang.platform.lang.ConvertUtils;

/**
 * @classname OthersServiceImpl
 * @description <br>广告主开户资质服务层实现类</br>
 * @author  Rocky
 * @date    2019-12-17 10:11:36
 * @email   jintaozhao@qq.com
 * @version 1.0.0
 */
@Service
public class OthersServiceImpl implements OthersService {

	@Autowired
	private OthersMapper othersMapper;

	/**
     * 查询广告主开户资质信息
     * 
     * @param qualificationId 广告主开户资质ID
     * @return 广告主开户资质信息
     */
    @Override
	public Others selectOthersById(Long qualificationId) {
	    return othersMapper.selectOthersById(qualificationId);
	}
	
	/**
     * 查询广告主开户资质列表
     * 
     * @param others 广告主开户资质信息
     * @return 广告主开户资质集合
     */
	@Override
	public List<Others> selectOthersList(Others others) {
	    return othersMapper.selectOthersList(others);
	}
	
    /**
     * 新增广告主开户资质
     * 
     * @param others 广告主开户资质信息
     * @return 结果
     */
	@Override
	public int insertOthers(Others others) {
	    return othersMapper.insertOthers(others);
	}
	
	/**
     * 修改广告主开户资质
     * 
     * @param others 广告主开户资质信息
     * @return 结果
     */
	@Override
	public int updateOthers(Others others) {
	    return othersMapper.updateOthers(others);
	}

	/**
     * 删除广告主开户资质对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteOthersByIds(String ids) {
		return othersMapper.deleteOthersByIds(ConvertUtils.toStrArray(ids));
	}
	
}
